package com.zhxi.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhxi.common.utils.PageUtils;
import com.zhxi.common.utils.R;
import com.zhxi.gulimall.product.entity.AttrGroupEntity;
import com.zhxi.gulimall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @Author: zhxi
 * @Email: 664480310@qq.com
 * @Date: 2024-08-19 17:41:15
 * @Version: 1.0.0
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 分类id查询列表
     *
     * @param params    分页参数
     * @param catelogId 属性id
     * @return 列表
     */
    PageUtils listByCateId(Map<String, Object> params, long catelogId);

    R info(Long attrGroupId);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);
}

